<% if experiment.has_winner? %>
  <form action="<%= url "/reopen?experiment=#{experiment.name}" %>" method='post' onclick="return confirmReopen()">
    <input type="submit" value="Reopen Experiment">
  </form>
<% end %>
<% if experiment.start_time %>
  <form action="<%= url "/reset?experiment=#{experiment.name}" %>" method='post' onclick="return confirmReset()">
    <input type="submit" value="Reset Data">
  </form>
<% else%>
  <form action="<%= url "/start?experiment=#{experiment.name}" %>" method='post'>
    <input type="submit" value="Start">
  </form>
<% end %>
<form action="<%= url "/experiment?experiment=#{experiment.name}" %>" method='post' onclick="return confirmDelete()">
  <input type="hidden" name="_method" value="delete"/>
  <input type="submit" value="Delete" class="red">
</form>
